﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace OpenWings.UI.Helpers
{
    public class ListHelper
    {
        public static void PopulateListView(ListView view, Action<ListView> populate)
        {
            view.BeginUpdate();
            populate(view);
            view.EndUpdate();
        }

        public static void PopulateTreeView(TreeView view, Action<TreeView> populate)
        {
            view.BeginUpdate();
            populate(view);
            view.EndUpdate();
        }
    }
}
